package lhb.test.SC.common.model;

import java.io.Serializable;

public class ReturnMessage implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 9090133550982511075L;

	public static String defaultCode = "0";

	protected String code;

	protected String msg;

	protected Object data;

	public ReturnMessage(String code, String msg) {
		super();
		this.code = code;
		this.msg = msg;
	}

	public ReturnMessage(String msg) {
		this(defaultCode, msg);
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

}
